package com.bob;

import com.bob.web.common.shiro.filter.ShiroResourceFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.data.mongodb.core.MongoTemplate;

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
public class WebDemoApplication implements CommandLineRunner {

	@Autowired
	private MongoTemplate mongoTemplate;



	public static void main(String[] args) {
		SpringApplication.run(WebDemoApplication.class, args);
	}

	@Override
	public void run(String... strings) throws Exception {
//		filter.init();
//		System.out.println(mongoTemplate.collectionExists("resource"));
	}
}
